package com.shunde.xunjian;

import com.shunde.xunjian.config.HttpInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


@SpringBootApplication
@EnableAutoConfiguration(exclude = {FreeMarkerAutoConfiguration.class})
public class XunjianApplication implements WebMvcConfigurer {

    @Autowired
    private HttpInterceptor myInterceptor;


    public static void main(String[] args) {

        SpringApplication.run(XunjianApplication.class, args);
    }

//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        // 注册拦截器，并设置拦截的路径
//        registry.addInterceptor(myInterceptor).addPathPatterns("/**").excludePathPatterns("/Ruoyi/loginIn");
//    }


}
